package com.tjy.farmer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tjy.common.annotation.Excel;
import com.tjy.common.core.domain.BaseEntity;

import javax.annotation.sql.DataSourceDefinition;
import java.util.Date;

/**
 * 蜂农信息对象 tb_farmer_info
 *
 * @author tjy
 * @date 2025-09-05
 */
public class FarmerInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 蜂农信息主键ID */
    private Long id;

    /** 蜂农姓名 */
    @Excel(name = "蜂农姓名")
    private String farmerName;

    /** 蜂农联系电话 */
    @Excel(name = "蜂农联系电话")
    private String farmerPhone;

    /** 蜂农身份证号 */
    @Excel(name = "蜂农身份证号")
    private String farmerIdCard;

    /** 蜂农住址 */
    @Excel(name = "蜂农住址")
    private String farmerAddress;

    //蜂农头像
    @Excel(name = "蜂农头像")
    private String farmerAvatar;

    //开始养蜂时间
    @Excel(name = "开始养蜂时间")
    private Integer beginBeekeeping;

    /** 好评率 */
    @Excel(name = "好评率")
    private Double positiveReviewRate;

    /** 养蜂规模 */
    @Excel(name = "养蜂规模")
    private Integer beekeepingScale;

    /** 蜂蜜产量 */
    @Excel(name = "蜂蜜产量")
    private Double honeyProduction;

    /** 状态（1：正常，0：禁用） */
    @Excel(name = "状态", readConverterExp = "1=：正常，0：禁用")
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFarmerName(String farmerName) {
        this.farmerName = farmerName;
    }

    public String getFarmerName() {
        return farmerName;
    }

    public void setFarmerPhone(String farmerPhone) {
        this.farmerPhone = farmerPhone;
    }

    public String getFarmerPhone() {
        return farmerPhone;
    }

    public void setFarmerIdCard(String farmerIdCard) {
        this.farmerIdCard = farmerIdCard;
    }

    public String getFarmerIdCard() {
        return farmerIdCard;
    }

    public void setFarmerAddress(String farmerAddress) {
        this.farmerAddress = farmerAddress;
    }

    public String getFarmerAddress() {
        return farmerAddress;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("farmerName", getFarmerName())
                .append("farmerPhone", getFarmerPhone())
                .append("farmerIdCard", getFarmerIdCard())
                .append("farmerAddress", getFarmerAddress())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }

    public String getFarmerAvatar() {
        return farmerAvatar;
    }

    public void setFarmerAvatar(String farmerAvatar) {
        this.farmerAvatar = farmerAvatar;
    }

    public Double getPositiveReviewRate() {
        return positiveReviewRate;
    }

    public void setPositiveReviewRate(Double positiveReviewRate) {
        this.positiveReviewRate = positiveReviewRate;
    }

    public Integer getBeekeepingScale() {
        return beekeepingScale;
    }

    public void setBeekeepingScale(Integer beekeepingScale) {
        this.beekeepingScale = beekeepingScale;
    }

    public Integer getBeginBeekeeping() {
        return beginBeekeeping;
    }

    public void setBeginBeekeeping(Integer beginBeekeeping) {
        this.beginBeekeeping = beginBeekeeping;
    }


    public Double getHoneyProduction() {
        return honeyProduction;
    }

    public void setHoneyProduction(Double honeyProduction) {
        this.honeyProduction = honeyProduction;
    }
}
